﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace _0512063_0512082
{
    class FileUtil
    {
        public FileUtil() { }

        public static void WriteFile(String text, String filePath)
        {
            using (StreamWriter sw = new StreamWriter(filePath))
                sw.Write(text);
        }

        public static String ReadFile(String filePath) {
            String content = "";
            using (StreamReader sr = new StreamReader(filePath))
                content = sr.ReadToEnd();
            return content;
        }
    }
}
